<?
	echo $system_message;

	foreach($levels as $k => $d)
	{
		$n_levels[__link($k)] = $d;
	}
	$n_levels[__link(0)] = 'All Grade Levels';
?>
<p class="lead-title">Generate Student Balance Report</p>
<div>	
	<form action="<?=site_url('fees/balance_report');?>" method="POST" id="generatebalancereport">
		<div>
			<div class="row">
				<div class="large-6 small-12 columns">
					<?=form_dropdown('levels',$n_levels);?>
				</div>
				<div class="large-6 small-12 columns">
					<div class="btn-group">
					<button id="pdf" name="balance_report" value="pdf" class="btn"><i class="fa fa-file-pdf-o"></i>&nbsp;&nbsp;PDF</button>
					<button id="excel" name="balance_report" value="excel" class="btn"><i class="fa fa-file-excel-o"></i>&nbsp;&nbsp;CSV(Excel)</button>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>
<script type="text/javascript" src="<?=script_url('custom/generatebalancereport');?>"></script>
